package com.yingxin.yxerp.module.inform.constant;

/**
 * 通知类型
 * @author dongpengfei
 * @version 1.0
 * @date 2021-12-10 10:17
 * InformConstant
 */

public enum InformType {

    SCJGCB("SCJGCB", "生产加工成本"),
    YB("YB", "月报"),
    TSJY("TSJY", "投诉建议");

    private String type;

    private String typeName;

    InformType(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public static InformType getEnum(String type) {
        for (InformType i : InformType.values()) {
            if (i.getType().equals(type)) {
                return i;
            }
        }
        return null;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}
